package gcxy.train.account.ex.dao;

import java.util.Collection;


import gcxy.train.account.ex.exception.HasExistException;
import gcxy.train.account.ex.exception.NoExistException;

import gcxy.train.account.ex.model.vo.Account;


public interface IAccountDAO {
	public Account findByAccountNo(String no);
	

	public Account findByAccountName(String name);
	
	
	public Collection<Account> findAccounts();
	
	
	public void insertAccount(Account account) throws IllegalArgumentException,HasExistException,Exception;
	
	
	public void updateAccount(Account account) throws NoExistException,IllegalArgumentException;
	
	public boolean deletAccount(Account account);
}
